package cn.gcjxsc.payment.data.pay;

import org.hibernate.validator.constraints.NotBlank;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.NotNull;

/**
 * @author pumbaa
 * @since 1.0
 */
public class PayData {
    @NotBlank(message = "流水号不能为空")
    private String sn;
    @NotNull(message = "金额不正确")
    private Long amount;
    private String attach;
    @NotBlank(message = "描述不能为空")
    private String body;
    @NotBlank(message = "回调地址不能为空")
    private String notify;
    @NotBlank(message = "IP地址不能为空")
    private String ip;
    @NotBlank(message = "OPENID不能为空")
    private String openid;
    @NotEmpty(message = "订单识别不能为空")
    private String snDiscr;

    public String getSnDiscr() {
        return snDiscr;
    }

    public void setSnDiscr(String snDiscr) {
        this.snDiscr = snDiscr;
    }

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public String getBody() {
        return body;
    }

    public void setBody(String body) {
        this.body = body;
    }

    public String getNotify() {
        return notify;
    }

    public void setNotify(String notify) {
        this.notify = notify;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getSn() {
        return sn;
    }

    public void setSn(String sn) {
        this.sn = sn;
    }

    public Long getAmount() {
        return amount;
    }

    public void setAmount(Long amount) {
        this.amount = amount;
    }

    public String getAttach() {
        return attach;
    }

    public void setAttach(String attach) {
        this.attach = attach;
    }
}
